import request from '@/utils/request'

// 查询盘点明细列表
export function listInventoryInfo(query) {
  return request({
    url: '/system/inventoryInfo/list',
    method: 'get',
    params: query
  })
}

// 查询盘点明细详细
export function getInventoryInfo(id) {
  return request({
    url: '/system/inventoryInfo/' + id,
    method: 'get'
  })
}

// 新增盘点明细
export function addInventoryInfo(data) {
  return request({
    url: '/system/inventoryInfo',
    method: 'post',
    data: data
  })
}

// 修改盘点明细
export function updateInventoryInfo(data) {
  return request({
    url: '/system/inventoryInfo',
    method: 'put',
    data: data
  })
}

// 删除盘点明细
export function delInventoryInfo(id) {
  return request({
    url: '/system/inventoryInfo/' + id,
    method: 'delete'
  })
}
